<?php

// 获取平台参数
$router->get('/get/params', ['middleware' => 'managerapi:get-params', 'uses' => 'ParamsController@getParams']);

// 设置平台参数
$router->get('/set/params', ['middleware' => 'managerapi:set-params', 'uses' => 'ParamsController@setParams']);

// 级差设置
$router->get('/get/range/', ['middleware' => 'managerapi:get-params', 'uses' => 'ParamsController@getRangeSetting']);

// 添加级差设置
$router->post('/add/range', ['middleware' => 'managerapi:set-params', 'uses' => 'ParamsController@addRangeSetting']);

// 修改级差设置
$router->put('/update/range', ['middleware' => 'managerapi:set-params', 'uses' => 'ParamsController@updateRangeSetting']);

// 删除级差设置
$router->delete('/delete/range', ['middleware' => 'managerapi:set-params', 'uses' => 'ParamsController@deleteRangeSetting']);

// 清除数据
$router->get('/truncate', ['middleware' => 'managerapi', 'uses' => 'ParamsController@truncate']);